<?php

class ProjectprofileController extends Zend_Controller_Action
{
	
	public function indexAction()
	{
        $estate_id = $this->getRequest()->getParam('project_id');
        //$estate_id = '4';
        $mapper = new Reale_Model_Estate_ProjectMapper();
        $project = $mapper->fetchBasicInfo($estate_id);
        $project['total_area'] = $this->_helper->UnitConverter($project['total_area'], 
																				'sqft',
                                                                                 'acre');
        if (count($project)) {
        $this->view->assign('basicInfo',$project);
        $this->view->assign('specInfo',$mapper->fetchSpecInfo($estate_id));
        $this->view->assign('brokerage',$mapper->fetchBrokerage($estate_id));
        }
	}
}